local rule = fk.CreateSkill {
  name = "#akdeath_rule&",
}

Fk:loadTranslationTable{
  ["#akdeath_rule&"] = "ak死亡",

}

rule:addEffect(fk.AfterCardsMove, {
  priority = 0.001,
  mute = true,
  is_delay_effect = true,
  can_trigger = function (self, event, target, player, data)
    return table.find(player:getCardIds("he"),function(id)
      return Fk:getCardById(id).trueName == "crossbow"
    end)
  end,
  on_cost = Util.TrueFunc,
  on_use = function (self, event, target, player, data)
    local room = player.room
      room:killPlayer{
        who = player,
      }
  end,
})


return rule
